package com.gpt.article.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigInteger;

/**
 * 采集配置对象 gpt_spider_diy
 * 
 * @author zhuzi
 * @date 2023-10-24
 */
public class GptSpiderDiy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采集id */
    private Long id;

    /** 来名称 */
    @Excel(name = "名称")
    private String name;

    /** 来源id */
    private Long itemId;

    /** 来源名称 */
    @Excel(name = "来源")
    private String itemName;

    /** 主域名，用于鉴别网站 */
    private String spiderDomain;

    /** 抓取地址 */
    private String spiderUrl;

    /** 列表标签 */
    private String listDiv;

    /** 翻页标签 */
    private String pageDiv;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 状态（0准备中 1采集中 2采集结束） */
    private String spiderStatus;

    /** 执行时间 */
    @Excel(name = "执行时间")
    private String taskTime;

    /** 保存目录 */
    @Excel(name = "保存目录")
    private String savePath;

    /** 自动采集(1是0否) */
    @Excel(name = "自动采集(1是0否)")
    private String spiderAuto;

    /** 描述 */
    private String description;

    /** 类型/分类/频道 */
    @Excel(name = "类型/分类/频道")
    private Integer typeId;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String typeName;

    /** 担任角色 */
    @Excel(name = "担任角色")
    private String takeRole;

    /** 生成模板 */
    @Excel(name = "生成模板")
    private String genStyle;



    /** 排序 */
    private Integer orderId;

    /** 需要删除的div 多个以;隔开，需带上#或者. */
    private String deleteDiv;

    /** 需要保留的标签 */
    private String saveDiv;


    /** 标题的标签 */
    private String titleDiv;
    /** 发布时间的标签 */
    private String pushTimeDiv;


    /**生成模型Id**/
    private Long promptsId;

    /**生成模型name**/
    private String promptsName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setSpiderDomain(String spiderDomain) 
    {
        this.spiderDomain = spiderDomain;
    }

    public String getSpiderDomain() 
    {
        return spiderDomain;
    }
    public void setSpiderUrl(String spiderUrl) 
    {
        this.spiderUrl = spiderUrl;
    }

    public String getSpiderUrl() 
    {
        return spiderUrl;
    }
    public void setListDiv(String listDiv) 
    {
        this.listDiv = listDiv;
    }

    public String getListDiv() 
    {
        return listDiv;
    }
    public void setPageDiv(String pageDiv) 
    {
        this.pageDiv = pageDiv;
    }

    public String getPageDiv() 
    {
        return pageDiv;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTaskTime(String taskTime)
    {
        this.taskTime = taskTime;
    }

    public String getTaskTime()
    {
        return taskTime;
    }
    public void setSavePath(String savePath) 
    {
        this.savePath = savePath;
    }

    public String getSavePath() 
    {
        return savePath;
    }
    public void setSpiderAuto(String spiderAuto) 
    {
        this.spiderAuto = spiderAuto;
    }

    public String getSpiderAuto() 
    {
        return spiderAuto;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setTypeId(Integer typeId) 
    {
        this.typeId = typeId;
    }

    public Integer getTypeId() 
    {
        return typeId;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setDeleteDiv(String deleteDiv) 
    {
        this.deleteDiv = deleteDiv;
    }

    public String getDeleteDiv() 
    {
        return deleteDiv;
    }
    public void setSaveDiv(String saveDiv) 
    {
        this.saveDiv = saveDiv;
    }

    public String getSaveDiv() 
    {
        return saveDiv;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemId", getItemId())
            .append("name", getName())
            .append("itemName", getItemName())
            .append("spiderDomain", getSpiderDomain())
            .append("spiderUrl", getSpiderUrl())
            .append("listDiv", getListDiv())
            .append("pageDiv", getPageDiv())
            .append("status", getStatus())
            .append("taskTime", getTaskTime())
            .append("savePath", getSavePath())
            .append("spiderAuto", getSpiderAuto())
            .append("description", getDescription())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("orderId", getOrderId())
            .append("deleteDiv", getDeleteDiv())
            .append("saveDiv", getSaveDiv())
            .toString();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitleDiv() {
        return titleDiv;
    }

    public void setTitleDiv(String titleDiv) {
        this.titleDiv = titleDiv;
    }

    public String getTakeRole() {
        return takeRole;
    }

    public void setTakeRole(String takeRole) {
        this.takeRole = takeRole;
    }

    public String getGenStyle() {
        return genStyle;
    }

    public void setGenStyle(String genStyle) {
        this.genStyle = genStyle;
    }

    public Long getPromptsId() {
        return promptsId;
    }

    public void setPromptsId(Long promptsId) {
        this.promptsId = promptsId;
    }

    public String getPromptsName() {
        return promptsName;
    }

    public void setPromptsName(String promptsName) {
        this.promptsName = promptsName;
    }

    public String getSpiderStatus() {
        return spiderStatus;
    }

    public void setSpiderStatus(String spiderStatus) {
        this.spiderStatus = spiderStatus;
    }

    public String getPushTimeDiv() {
        return pushTimeDiv;
    }

    public void setPushTimeDiv(String pushTimeDiv) {
        this.pushTimeDiv = pushTimeDiv;
    }
}
